package com.tao.modular

import android.content.res.Configuration
import com.elvishew.xlog.XLog
import com.tao.common.BaseApp
import com.tao.common.ModuleManager

/**
 * https://blog.csdn.net/hailong0529/article/details/89392064
 *
 * https://blog.csdn.net/weixin_43115440/article/details/106057876
 *
 * https://github.com/cwwei2005/ModulePatternDemo
 *
 * https://github.com/alibaba/ARouter
 *
 * https://www.jianshu.com/p/504c0f5d2665
 */
class App : BaseApp() {
    override fun onCreate() {
        super.onCreate()
        XLog.e("App Init")
        ModuleManager.instance.onCreate()
    }

    override fun onLowMemory() {
        super.onLowMemory()
        ModuleManager.instance.onLowMemory()
    }

    override fun onConfigurationChanged(newConfig: Configuration) {
        super.onConfigurationChanged(newConfig)
        ModuleManager.instance.onConfigurationChanged(newConfig)
    }
}